(*
  Copyright (c) 2009 Barry Schwartz

  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation
  files (the "Software"), to deal in the Software without
  restriction, including without limitation the rights to use,
  copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the
  Software is furnished to do so, subject to the following
  conditions:

  The above copyright notice and this permission notice shall be
  included in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  OTHER DEALINGS IN THE SOFTWARE.
*)

open Dim
open VMTypes
  
val wrap_dim : dim -> partial_value
  
val unwrap_dim : string -> unknown -> dim
  
val prim_make_dim : unknown list -> partial_value
  
val prim_fixed_dim : unknown -> partial_value
  
val prim_dim_zero : partial_value
  
val prim_dim_1pt : partial_value
  
val prim_dim_12pt : partial_value
  
val prim_dim_fil : partial_value
  
val prim_dim_fill : partial_value
  
val prim_dim_ss : partial_value
  
val prim_dim_filneg : partial_value
  
val prim_dim_equal : unknown -> unknown -> partial_value
  
val prim_dim_add : unknown -> unknown -> partial_value
  
val prim_dim_neg : unknown -> partial_value
  
val prim_dim_sub : unknown -> unknown -> partial_value
  
val prim_dim_mult : unknown -> unknown -> partial_value
  
val prim_dim_max : unknown -> unknown -> partial_value
  
val prim_dim_min : unknown -> unknown -> partial_value
  
val prim_dim_max_stretch : unknown -> partial_value
  
val prim_dim_max_shrink : unknown -> partial_value
  
val prim_dim_max_value : unknown -> partial_value
  
val prim_dim_min_value : unknown -> partial_value
  
val prim_dim_shift_base : unknown -> unknown -> partial_value
  
val prim_dim_shift_base_upto : unknown -> unknown -> partial_value
  
val prim_dim_inc_upto : unknown -> unknown -> partial_value
  
val prim_dim_dec_upto : unknown -> unknown -> partial_value
  
val prim_dim_resize_upto : unknown -> unknown -> partial_value
  
val prim_adjustment_ratio : unknown -> unknown -> partial_value
  
val prim_dim_scale_badness : unknown -> partial_value
  
val prim_dim_scale : unknown -> unknown -> partial_value
  
val prim_dim_scale_upto : unknown -> unknown -> partial_value
